-- GENERATED SPELL FOR [Doomclaw] --


function spell0_19738(pUnit, Event) --@Claw Swipe,n/a--
pUnit:FullCastSpellOnTarget(36205,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19738', 625, 1)
end

function spell1_19738(pUnit, Event) --@Claw Swipe,n/a--
pUnit:FullCastSpellOnTarget(36996,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19738', 1100, 1)
end

function spell2_19738(pUnit, Event) --@Slime Spray,n/a--
pUnit:FullCastSpellOnTarget(34261,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19738', 12000, 1)
end

function Sorts_19738(pUnit, Event)
local choix_sorts_19738 = math.random(0, 2)
if choix_sorts_19738 == 0 then
pUnit:RegisterEvent('spell0_19738', 1, 1)
end
if choix_sorts_19738 == 1 then
pUnit:RegisterEvent('spell1_19738', 1, 1)
end
if choix_sorts_19738 == 2 then
pUnit:RegisterEvent('spell2_19738', 1, 1)
end
end

function mob19738_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19738', math.random(1500, 3000), 1)
end

function mob19738_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19738_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19738_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19738, 1, 'mob19738_Action')
RegisterUnitEvent(19738, 2, 'mob19738_Leave')
RegisterUnitEvent(19738, 3, 'mob19738_Kill')
RegisterUnitEvent(19738, 4, 'mob19738_Die')
